﻿#include "udpmespost.h"

udpMesPost::udpMesPost()
{
    m_udpClient = new QUdpSocket();

}

void udpMesPost::send(QString ip_address,QString port,QString message)
{
    QByteArray dataGram = message.toUtf8();
    m_udpClient->writeDatagram(dataGram.data(),
                               dataGram.size(),
                               QHostAddress(ip_address),
                               port.toInt());

}
